package com.tanhua.mangement.service;

import com.tanhua.dubbo.server.api.VideoApi;
import com.tanhua.mangement.vo.PageResult;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class TsetManageVideosService {

    @Autowired
    private ManageVideosService manageVideosService;

    @Test
    public void testQueryManageVideos() {
        PageResult pageResult = manageVideosService.queryManageVideos(1L, 2, 5, "created", "ascending");
        List<?> items = pageResult.getItems();
        for (Object item : items) {
            System.out.println("测试" + item);
        }
    }
}
